package com.example.demo3.service;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.example.demo3.domain.bo.MenuBo;
import com.example.demo3.domain.vo.MenuVo;
import com.example.demo3.mapper.MenuMapper;
import lombok.RequiredArgsConstructor;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.awt.*;
import java.util.List;

@Service
@RequiredArgsConstructor
public class MenuService   {


    private final MenuMapper menuMapper;

    public List<MenuVo> queryMenuList(MenuBo menuBo) {
        QueryWrapper queryWrapper = new QueryWrapper<Menu>();
        queryWrapper.like("menu_name", menuBo.getMenuName());
        return menuMapper.selectList(queryWrapper);
    }
}
